package com.quick.proxy.client.config;


import com.quick.proxy.core.pojo.ProxyMapping;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Description: 客户端配置类
 * Author: 吃素不吃肉
 * Date: 2023/7/9
 *
 * @author 吃素不吃肉
 */
@ConfigurationProperties(prefix = "proxy.client")
@Component
@Data
public class ClientConfig {

    /**
     * 代理服务器地址
     */
    private String ip = "127.0.0.1";
    /**
     * 代理服务器端口
     */
    private int port = 9527;
    /**
     * 认证码
     */
    private String accessKey;
    /**
     * 映射地址 远程访问端口:本地代理地址 示例:20001:127.0.0.1:8080
     */
    private List<ProxyMapping> proxyMappings;


}
